package by.wind.drebedengi.datalayer.bean;

import com.j256.ormlite.field.DatabaseField;

public class Currency extends AbstractBean{
	
	@DatabaseField
	private String name;
	@DatabaseField
	private float cource;
	@DatabaseField
	private String code;
	@DatabaseField
	private int familyId;
	@DatabaseField
	private boolean isDefault;
	@DatabaseField
	private boolean isAutoupdate;
	@DatabaseField
	private boolean isHidden;
	
	public static final String ID = "id";
	public static final String NAME = "name";
	public static final String COURSE = "course";
	public static final String CODE = "code";
	public static final String FAMILY_ID = "family_id";
	public static final String DEFAULT = "is_default";
	public static final String AUTOUPDATE = "is_autoupdate";
	public static final String HIDDEN = "is_hidden";
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public float getCource() {
		return cource;
	}
	public void setCource(float cource) {
		this.cource = cource;
	}
	public int getFamilyId() {
		return familyId;
	}
	public void setFamilyId(int familyId) {
		this.familyId = familyId;
	}
	public boolean isDefault() {
		return isDefault;
	}
	public void setDefault(boolean isDefault) {
		this.isDefault = isDefault;
	}
	public boolean isAutoupdate() {
		return isAutoupdate;
	}
	public void setAutoupdate(boolean isAutoupdate) {
		this.isAutoupdate = isAutoupdate;
	}
	public boolean isHidden() {
		return isHidden;
	}
	public void setHidden(boolean isHidden) {
		this.isHidden = isHidden;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	
	public String toString() {
		return "Currency: \n" +
				"name = " + name + "\n" +
				"cource = " + cource + "\n" +
				"code = " + code + "\n" +
				"familyId = " + familyId + "\n" +
				"isDefault = " + isDefault + "\n" +
				"isAutoupdate = " + isAutoupdate + "\n" +
				"isHidden = " + isHidden;
	}
}
